package com.seven.domain;

import java.util.UUID;
import lombok.Data;

@Data
public class DropdownVO<T> {

  private String title;

  private String id;

  private T obj;


  public static <T> DropdownVO<T> toVo(T t, String title) {
    DropdownVO<T> tDropdownVO = new DropdownVO<>();
    tDropdownVO.setObj(t);
    tDropdownVO.setTitle(title);
    tDropdownVO.setId(UUID.randomUUID().toString().substring(32));
    return tDropdownVO;
  }
}
